<?php
// +----------------------------------------------------------------------
// | Description: 基础框架路由配置文件
// +----------------------------------------------------------------------
// | Author: linchuangbin <linchuangbin@honghaiweb.com>
// +----------------------------------------------------------------------

return [
    // 【基础】登录
    'admin/base/login' => ['admin/base/login', ['method' => 'POST']],

    // 【基础】记住登录
    'admin/base/relogin' => ['admin/base/relogin', ['method' => 'POST']],

    // 【基础】修改密码
    'admin/base/setInfo' => ['admin/base/setInfo', ['method' => 'POST']],

    // 【基础】退出登录
    'admin/base/logout' => ['admin/base/logout', ['method' => 'POST']],

    // 【基础】获取配置
    'admin/base/getConfigs' => ['admin/base/getConfigs', ['method' => 'POST']],

    // 【基础】获取验证码
    'admin/base/getVerify' => ['admin/base/getVerify', ['method' => 'GET']],

    // 【基础】上传图片
    'admin/upload' => ['admin/upload/index', ['method' => 'POST']],
    'admin/upload/base64' => ['admin/upload/base64', ['method' => 'POST']],

    // 保存系统配置
    'admin/systemConfigs' => ['admin/systemConfigs/save', ['method' => 'POST']],

    // 【规则】批量删除
    'admin/rules/deletes' => ['admin/rules/deletes', ['method' => 'POST']],

    // 【规则】批量启用/禁用
    'admin/rules/enables' => ['admin/rules/enables', ['method' => 'POST']],

    // 【用户组】批量删除
    'admin/groups/deletes' => ['admin/groups/deletes', ['method' => 'POST']],

    // 【用户组】批量启用/禁用
    'admin/groups/enables' => ['admin/groups/enables', ['method' => 'POST']],

    // 【用户】批量删除
    'admin/users/deletes' => ['admin/users/deletes', ['method' => 'POST']],

    // 【用户】批量启用/禁用
    'admin/users/enables' => ['admin/users/enables', ['method' => 'POST']],

    // 【菜单】批量删除
    'admin/menus/deletes' => ['admin/menus/deletes', ['method' => 'POST']],

    // 【菜单】批量启用/禁用
    'admin/menus/enables' => ['admin/menus/enables', ['method' => 'POST']],

    // 【组织架构】批量删除
    'admin/structures/deletes' => ['admin/structures/deletes', ['method' => 'POST']],

    // 【组织架构】批量启用/禁用
    'admin/structures/enables' => ['admin/structures/enables', ['method' => 'POST']],

    // 【部门】批量删除
    'admin/posts/deletes' => ['admin/posts/deletes', ['method' => 'POST']],

    // 【部门】批量启用/禁用
    'admin/posts/enables' => ['admin/posts/enables', ['method' => 'POST']],

    // 数据库备份还原类
    'admin/DbBackup/bak' => ['admin/DbBackup/bak', ['method' => 'GET']],

    // 后台登陆日志
    'admin/signlogs/deletes' => ['admin/signLogs/deletes', ['method' => 'POST']],

    // 下载xml文件
    'admin/menus/createXml' => ['admin/menus/createXml', ['method' => 'GET']],

    // 页面配置文件
    'JsonConfig' => ['admin/JsonConfig/index', ['method' => 'GET']],

    'test' => ['client/base/test', ['method' => 'GET']], //测试
    // +----------------------------------------------------------------------
    // | 会员路由
    // +----------------------------------------------------------------------
    // 注册
    'base/signup' => ['client/Base/signUp', ['method' => 'POST']],
    'base/SmsCode' => ['client/Base/SmsCode', ['method' => 'GET']],
    'base/login' => ['client/Base/login', ['method' => 'POST']],
    'base/logout' => ['client/Base/logout', ['method' => 'GET']],
    'base/sku' => ['base/sku', ['method' => 'POST']],
    'base/refreshToken' => ['base/refreshToken', ['method' => 'GET']],
    'base/wechatPay' => ['base/wechatPay', ['method' => 'GET']],
    'base/wechatLogin' => ['base/wechatLogin', ['method' => 'GET']],
    'base/resetPassByPhone' => ['base/resetPassByPhone', ['method' => 'PUT']],
    'base/oauth_callback' => ['base/oauth_callback', ['method' => 'GET']],
    'client/OrderCount' => ['client/orders/OrderCount', ['method' => 'GET']],

    'client/Password' => ['client/Members/modifyPass', ['method' => 'PUT']],
    'client/wechatNotify' => ['client/OrderPays/wechatNotify', ['method' => 'POST']],
    'client/OrderPays/queryOrder' => ['client/OrderPays/queryOrder', ['method' => 'GET']],
    'client/wxConfig' => ['client/OrderPays/wxConfig', ['method' => 'GET']],

    'client/genSku' => ['client/ProductAttrs/genSku', ['method' => 'POST']],
    'client/ProductAttrOriginList' => ['client/ProductAttrs/OriginIndex', ['method' => 'GET']],

    'wechat/push' => ['base/wechatPush'],
    'wechat/qrcode' => ['client/Members/qrcode'],
    'wechat/menus' => ['client/wechat/menus'],

    // 【用户】批量启用/禁用
    'client/Members/enables' => ['client/Members/enables', ['method' => 'POST']],

    // 【商品】批量启用/禁用
    'client/Products/enables' => ['client/Products/enables', ['method' => 'POST']],

    'client/ChildMembers/level_one' => ['client/members/level_one', ['method' => 'GET']],
    'client/ChildMembers/level_two' => ['client/members/level_tow', ['method' => 'GET']],
		'client/ChildMembers/level_three' => ['client/members/level_three', ['method' => 'GET']],
		'Categories/treeData'      => ['client/Categories/treeData', ['method' => 'GET']],

    // +----------------------------------------------------------------------
    // | 以下路由为自动生成
    // +----------------------------------------------------------------------
    // 定义资源路由  后边对大小写敏感(除了首字母)
    '__rest__' => [
        'client/OrderConfigs' => 'client/OrderConfigs',
        'admin/AppConfigs' => 'admin/AppConfigs',
        'admin/rules' => 'admin/rules',
        'admin/groups' => 'admin/groups',
        'admin/users' => 'admin/users',
        'admin/menus' => 'admin/menus',
        'admin/structures' => 'admin/structures',
        'admin/posts' => 'admin/posts',
        'admin/signlogs' => 'admin/SignLogs',
        'admin/SysLogs' => 'admin/SysLogs',
        'admin/DbBackup' => 'admin/DbBackup',
        'client/Products' => 'client/Products',
        'client/Brands' => 'client/Brands',
        'client/BrandsSeries' => 'client/BrandsSeries',
        'client/BrandsCategories' => 'client/BrandsCategories',
        'client/Categories' => 'client/Categories',
        'client/Brands' => 'client/Brands',
        'client/Skus' => 'client/Skus',
        'client/SkuItems' => 'client/SkuItems',
        'client/ProductAttrs' => 'client/ProductAttrs',
        'client/Members' => 'client/Members',
        'client/Carts' => 'client/Carts',
        'client/Orders' => 'client/Orders',
        'client/Address' => 'client/Address',
        'client/ProductImgs' => 'client/ProductImgs',
        'client/Comments' => 'client/Comments',
        'client/CommentCounts' => 'client/CommentCounts',
        'client/OrdersItems' => 'client/OrdersItems',
        'client/OrderPays' => 'client/OrderPays',
        'client/MembersWechats' => 'client/MembersWechats',
        'client/OrderRefunds' => 'client/OrderRefunds',
        'client/MemberAccounts' => 'client/MemberAccounts',
        'client/Banks' => 'client/Banks',
        'client/Banners' => 'client/Banners',
        'client/ClientPaytypes' => 'client/ClientPaytypes',
        'client/Cashes' => 'client/Cashes',
        'client/AboutUs' => 'client/AboutUs',
    ],

    // MISS路由
    '__miss__' => 'admin/base/miss',
];
